<!DOCTYPE html>
<html>
<head>
    {include file="common/meta" /}
    <style type="text/css">
        body {
            min-width: 375px;
            font-size: 14px;
            line-height: 1.5715;
            margin: 0;
            color: #999;
            background-size: cover;
        }
        .container {
            height: 100%;
            min-height: 620px;
        }
        .container .login-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            height: 100%;
        }
        .login-screen {
            box-shadow: 0 4px 30px rgba(0,0,0,.15);
            background-color: #fff;
            height: auto;
            border-radius: 8px;
            overflow:hidden;
            float: left;
        }
        .login-head {
            background: #708eea;
            width: 470px;
            display: none;
            line-height: 445px;
            float: left;
        }
        .login-head img{
            width: 470px;
        }
        .login-form {
            padding: 5rem;
            width: 375px;
            float: left;
        }
        @media (min-width: 968px){
            .login-head {
                display: inline-block;
            }
            .login-form {
                width: 465px;
            }
        }
        .login-sec-tit {
            color: #555555;
            display: inline-block;
            width: 100%;
            text-align: center;
            font-weight: bold;
            font-size: 24px;
            margin: 0 auto 8px auto;
            padding-right: 5px;
            zoom: 1;
        }
        .login-sec-tit img {
            height: 50px;
            border-radius: 25px;
            margin-right: 5px;
        }
        #login-form {
            margin-top: 20px;
        }
        #login-form .input-group {
            margin-bottom: 15px;
        }
        #login-form .form-control {
            font-size: 13px;
            border: 1px solid #cccccc;
            outline: none;
            line-height: 40px;
            height: 40px;
            font-size: 14px;
        }
        #login-form .checkbox {
            margin-bottom: 20px;
        }
        .copyright {
            color: #bebebe;
            position: static;
            width: 100%;
            text-align: center;
            margin-top: -80px;
            padding-top: 20px;
        }
        .copyright a{
            color: #bebebe;
        }
    </style>
    <!--@formatter:off-->
    {if $background}
    <style type="text/css">
        body{
            background-image: url('{$background}');
        }
    </style>
    {/if}
    <!--@formatter:on-->
</head>
<body>
<div class="container">
    <div class="login-wrapper">
        <div class="login-screen">
            <div class="login-head">
                <img src="__CDN__/assets/img/login-head.png" style="width:100%;"/>
                
            </div>
            <div class="login-form">
                <h2 class="login-sec-tit">WEB SYSTEM MANAGEMENT</h2>
                <form action="" method="post" id="login-form">
                    <!--@AdminLoginFormBegin-->
                    <div id="errtips" class="hide"></div>
                    {:token()}
                    <div class="input-group">
                        <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
                        <input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
                    </div>

                    <div class="input-group">
                        <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
                        <input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
                    </div>
                    <!--@CaptchaBegin-->
                    {if $Think.config.fastadmin.login_captcha}
                    <div class="input-group">
                        <div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
                        <input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length})" autocomplete="off"/>
                        <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
                            <img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="40" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
                        </span>
                    </div>
                    {/if}
                    <!--@CaptchaEnd-->
                    {if $keeyloginhours>0}
                    <div class="form-group checkbox">
                        <label class="inline" for="keeplogin" data-toggle="tooltip" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
                            <input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
                            {:__('Keep login')}
                        </label>
                    </div>
                    {/if}
                    <div class="form-group">
                        <button type="submit" class="btn btn-success btn-lg btn-block" style="background:#708eea;">{:__('Sign in')}</button>
                    </div>
                    <!--@AdminLoginFormEnd-->
                </form>
            </div>
        </div>
    </div>
</div>
<div class="copyright">
    Copyright &copy; 2016-{:date("Y")} <a href="__PUBLIC__">{$site.name}</a>.</strong> All rights reserved.
    ICP证：<a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备100000号-1</a>
</div>

{include file="common/script" /}
</body>
</html>
